import type { IModalConfig } from '@/components/types'

export const modalConfig: IModalConfig = {
  category: 'system',
  pageName: 'user',
  header: {
    newTitle: '新增用户',
    editTitle: '编辑用户'
  },
  propItems: [
    {
      type: 'input',
      label: '用户账号',
      prop: 'username',
      placeholder: '请输入用户名称',
      disabled: true
    },
    {
      type: 'input',
      label: '真实姓名',
      prop: 'realname',
      placeholder: '请输入真实姓名'
    },
    {
      type: 'radio',
      label: '性别',
      prop: 'gender',
      options: [
        {
          label: '男',
          value: '0'
        },
        {
          label: '女',
          value: '1'
        }
      ]
    },
    {
      type: 'input',
      label: '手机号码',
      prop: 'mobile',
      placeholder: '请输入手机号码'
    },
    {
      type: 'input',
      label: '邮箱号码',
      prop: 'email',
      placeholder: '请输入邮箱号码'
    },
    {
      type: 'radio',
      label: '状态',
      prop: 'status',
      options: [
        {
          label: '禁用',
          value: '0'
        },
        {
          label: '启用',
          value: '1'
        }
      ]
    },
    {
      type: 'select',
      label: '角色',
      prop: 'roleId',
      placeholder: '请选择角色',
      options: []
    },
    {
      type: 'select',
      label: '部门',
      prop: 'departmentId',
      placeholder: '请选择部门',
      options: []
    }
  ]
}
